<?php
/**
 * Notes:
 * Created by PhpStorm.
 * Author: TS
 * Date: 2019/10/29
 * Time: 21:41
 */

namespace app\validate;


use think\Validate;

class JobValidate extends Validate
{
    protected $rule = [
        'user_name' => 'require',
        'user_birthday' => 'require',
        'political_identity' => 'require',
        'user_degree' => 'require',
        'user_sex' => 'require',
        'user_national' => 'require',
        'user_health' => 'require',
        'graduation_time' => 'require',
        'user_header' => 'require',
        'real_name' => 'require',
        'user_address' => 'require',
        'user_email' => 'require',
        'department_id' => 'require',
        'user_pwd' => 'require',
        'real_card' => 'require',
        'address_id' => 'require',
        'user_phone' => 'require',
        'role_id' => 'require',
        'user_info' => 'require'
    ];

    protected $field = [
        'user_name' => '用户名',
        'user_birthday' => '出生年月日',
        'political_identity' => '政治面貌',
        'user_degree' => '学历',
        'user_sex' => '性别',
        'user_national' => '民族',
        'user_health' => '健康状况',
        'graduation_time' => '毕业时间',
        'user_header' => '头像',
        'real_name' => '真是姓名',
        'user_address' => '现住地址',
        'user_email' => '用户邮箱',
        'department_id' => '部门',
        'user_pwd' => '用户密码',
        'real_card' => '身份证',
        'address_id' => '家庭住址',
        'user_phone' => '手机',
        'role_id' => '角色',
        'user_info' => '个性签名'
    ];

}